package com.business.system.bean;

import net.sf.rose.jdbc.bean.ModelBean;
import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;

/**
 * @author: xudy
 * @date: 2018/04/07 15:50
 * @description:
 */
@Table(name = "APPLY")
public class ApplyBean extends ModelBean {

	@Column(pk = true, name = "ID", type = Type.定长文本, description = "编号", canNull = false, size = 32, policy = "UUID")
	private String id;

	@Column(name = "USER_ID", type = Type.变长文本, description = "", size = 32)
	private String userId;

	@Column(name = "AREA", type = Type.变长文本, description = "代理区域", size = 50)
	private String area;

	@Column(name = "AREA_CODE", type = Type.变长文本, description = "代理区域代码", size = 10)
	private String areaCode;

	@Column(name = "APPLY_FEE", type = Type.数字双精度型, description = "代理/加盟费用")
	private double applyFee;

	@Column(name = "REMARK", type = Type.变长文本, description = "备注", size = 50)
	private String remark;

	@Column(name = "APPLY_STATUS", type = Type.数字整型, description = "申请代理资格 审核1-待审核,2-已通过 3-未通过", size = 1)
	private int applyStatus = 1;
    public static int APPLY_TO_CHECK=1;

    public static int APPLY_PASS=2;

    public static int APPLY_NOT_PASS=3;

	@Column(name = "PAY_TYPE", type = Type.数字整型, description = "1-微信支付  2-上传凭证", size = 1)
	private int payType;

	@Column(name = "PAY_STATUS", type = Type.数字整型, description = "付款审核 1-等待支付, 2-待审核 3-已通过 4-未通过", size = 1)
    private int payStatus;

	public static int PAY_NOT =1;

    public static int PAY_TO_CHECK =2;

    public static int PAY_IS_PASS =3;

    public static int PAY_NO_PASS =4;

	@Column(name = "REAL_FEE", type = Type.数字双精度型, description = "代理/加盟费用")
	private double realFee;

	@Column(name = "TYPE", type = Type.数字整型, description = "1-代理商  2-加盟商", size = 1)
	private int type;

    public static int AGENT = 1;
    public static int JIAMENG = 2;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	public double getApplyFee() {
		return applyFee;
	}

	public void setApplyFee(double applyFee) {
		this.applyFee = applyFee;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int getApplyStatus() {
		return applyStatus;
	}

	public void setApplyStatus(int applyStatus) {
		this.applyStatus = applyStatus;
	}

	public int getPayType() {
		return payType;
	}

	public void setPayType(int payType) {
		this.payType = payType;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getPayStatus() {
		return payStatus;
	}

	public void setPayStatus(int payStatus) {
		this.payStatus = payStatus;
	}

	public double getRealFee() {
		return realFee;
	}

	public void setRealFee(double realFee) {
		this.realFee = realFee;
	}
}